package com.subaiqiao.yunshiyuan.entrance.ysy.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.subaiqiao.yunshiyuan.basis.service.IBasisService;
import com.subaiqiao.yunshiyuan.entrance.ysy.pojo.Product;
import com.baomidou.mybatisplus.extension.service.IService;
import com.subaiqiao.yunshiyuan.entrance.ysy.vo.ProductVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 曹朝禹
 * @since 2022-05-13
 */
public interface ProductService extends IBasisService<Product> {

    Page<ProductVO> FillProductPage(Page<ProductVO> page, @Param(Constants.WRAPPER) QueryWrapper<ProductVO> wrapper);

    ProductVO FillProductDetails(@Param(Constants.WRAPPER)QueryWrapper<ProductVO> wrapper);

    Integer FindProductCount();

    Integer FindInSellingGoodsCount();

    Integer FindShortageOfGoodsCount();

    Integer FindProductCountYesterdayRegister();

    List<ProductVO> test();
}
